package com.hfkz.project.domain;

import java.util.Calendar;
import java.util.Date;

public class Client {
	
	private String account;
	private String pwd;
	private String clientName;
	private Date registerTime;
	private String balance;

	
	
	public Client() {
		super();
	}

	public Client(String account, String pwd, String clientName,
			String balance) {
		super();
		this.account = account;
		this.pwd = pwd;
		this.clientName = clientName;
		this.balance = balance;
		this.registerTime = dateNow();
	}

	public String getClientName() {
		return clientName;
	}

	public void setClientName(String clientName) {
		this.clientName = clientName;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public String getBalance() {
		return balance;
	}

	public void setBalance(String balance) {
		this.balance = balance;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public static Date dateNow(){
		Calendar c = Calendar.getInstance();
		
		int year = c.get(Calendar.YEAR); 
		int month = c.get(Calendar.MONTH); 
		int date = c.get(Calendar.DATE); 
		
		Date d = null;
		
		d.setYear(year);
		d.setMonth(month);
		d.setDate(date);
		
		return d;
		
	}
}
